package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *  实体类。
 *
 * @author 27806
 * @since 2024-06-18
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "farm_apply", schema = "rc")
public class FarmApply implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String name;

    private String phone;

    private String farmName;

    private String address;

    /**
     * 0未通过 1审核通过 2审核中
     */
    @Column(onInsertValue = "2")
    private Integer status;

    /**
     * 未通过原因
     */
    private String reason;

    private String notes;

    @Column(onInsertValue = "now()",onUpdateValue = "now()")
    private LocalDateTime updateTime;
}
